﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="Login.aspx.cs" Inherits="Portal.Login" %>
<%@ Register Src="/Administrator/UserControls/Footer.ascx" TagName="Footer" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Đăng nhập</title>
    <link href="/Administrator/Resource/Styles/Default.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:UpdatePanel ID="updatePanel" RenderMode="Inline" runat="server">
<ContentTemplate>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
    <tr>
        <td height="100" align="center">
            <table border="0" cellpadding="0" cellspacing="0" width="500">
                <tr>
                    <td height="120">
                    </td>
                </tr>
                <tr>
                    <td>
                        <table align="center" width="100%" cellspacing="1" cellpadding="0" border="0" class="content">
                            <tr>
                                <td class="header1" colspan="2" align="left">
                                    <img src="/Administrator/Resource/Images/blank.gif" width="10" height="1" />Đăng nhập</td>
                            </tr>
                            <tr>
                                <td class="postheader" width="50%" align="left">
                                    <img src="/Administrator/Resource/Images/blank.gif" width="10" height="1" />Tài khoản</td>
                                <td class="post" width="50%" align="left">
                                    <asp:TextBox ID="txtUsername" Width="200" BorderStyle="Solid" BorderWidth="1" runat="server"
                                        MaxLength="35" value="Enter user name" onfocus="if (this.value=='Enter user name') this.value='';"
                                        onblur="if (this.value=='') this.value='Enter user name';"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtUsername"
                                        ErrorMessage="*"></asp:RequiredFieldValidator></td>
                            </tr>
                            <tr>
                                <td class="postheader" align="left">
                                    <img src="/Administrator/Resource/Images/blank.gif" width="10" height="1" />Mật khẩu</td>
                                <td class="post" align="left">
                                    <asp:TextBox ID="txtPassword" Width="200" BorderStyle="Solid" BorderWidth="1" runat="server"
                                        TextMode="Password" MaxLength="35" value="Enter password" onfocus="if (this.value=='Enter password') this.value='';"
                                        onblur="if (this.value=='') this.value='Enter password';"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPassword"
                                        ErrorMessage="*"></asp:RequiredFieldValidator></td>
                            </tr>
                            <tr>
                                <td class="postheader" align="left">
                                    <img src="/Administrator/Resource/Images/blank.gif" width="10" height="1" />Ghi nhớ</td>
                                <td class="post" align="left">
                                    <asp:CheckBox runat="server" ID="chkRememberPwd" Checked="true" /></td>
                            </tr>   
                            <tr>
                                <td class="postheader" align="left" colspan="2">
                                    <img src="/Administrator/Resource/Images/blank.gif" width="10" height="18" /><asp:label id="lblError" runat="server" ForeColor="red" Font-Bold="true" enableviewstate="False" visible="False" cssclass="validator"></asp:label></td>                                
                            </tr>                               
                            <tr>
                                <td class="postfooter" colspan="2" valign="middle" align="center">
                                    <asp:Button ID="btnLogin" runat="server" BorderStyle="Solid" BorderWidth="1" CssClass="pbutton" Text="Đăng nhập" OnClick="btLogin_Click" />
                                    <asp:Button ID="btnLostPass" runat="server" BorderStyle="Solid" BorderWidth="1" CssClass="pbutton" Text="Quên mật khẩu"  OnClick="btnLostPass_Click" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="center">
                         <uc1:Footer ID="Footer" runat="server"></uc1:Footer>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</tbody>
</table> 
</ContentTemplate>
</asp:UpdatePanel>
    </form>
</body>
</html>
